package com.lanchetech.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户消费金额累计
 */
@ApiModel(value = "com-lanchetech-entity-ConsumptionAmount")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ConsumptionAmount implements Serializable {
    /**
     * id
     */
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 消费用户id
     */
    @ApiModelProperty(value = "消费用户id")
    private Long userId;

    /**
     * 当前累计金额
     */
    @ApiModelProperty(value = "当前累计金额")
    private BigDecimal amount;

    /**
     * 历史累计金额
     */
    @ApiModelProperty(value = "历史累计金额")
    private BigDecimal historyAmount;

    /**
     * 订单数
     */
    @ApiModelProperty(value = "订单数")
    private Long orderCount;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private Date updatedAt;

    private static final long serialVersionUID = 1L;
}